package com.qixin.api.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 租车，车辆信息
 * </p>
 *
 * @author 张子艺
 * @since 2018-10-02
 */
@TableName("com_car")
public class ComCar extends Model<ComCar> {

    private static final long serialVersionUID = 1L;
     @TableField(exist = false)
    private String vehicleName;

    public String getvehicleName() {
        return vehicleName;
    }

    public void setvehicleName(String vehicleName) {
        this.vehicleName = vehicleName;
    }

	/**
	 * 租车创建时间
	 */
	@TableField(exist = false)
	private Long createTime;

	public Long getCreateTime() {
		 return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	/**
     * 结束时间
     */
    @TableField(exist = false)
    private Long endTime;

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    /**
     * 车辆id
     */
    @TableField(exist = false)
    private Long carId;

    public Long getCarId() {
        return carId;
    }

    public void setCarId(Long carId) {
        this.carId = carId;
    }

    /**
     * 时间差
     */
    @TableField(exist = false)
    private String difference;

    public String getDifference() {
        return difference;
    }

    public void setDifference(String difference) {
        this.difference = difference;
    }

    @TableField(exist = false)
    private Integer carload;

    public Integer getcarload() {
        return carload;
    }

    public void setcarload(Integer carload) {
        this.carload = carload;
    }

    @TableField(exist = false)
    private Integer renewal;

    public Integer getrenewal() {
        return renewal;
    }

    public void setrenewal(Integer renewal) {
        this.renewal = renewal;
    }

    @TableField(exist = false)
    private Integer wheelbase;

    public Integer getwheelbase() {
        return wheelbase;
    }

    public void setwheelbase(Integer wheelbase) {
        this.wheelbase = wheelbase;
    }

    @TableField(exist = false)
    private Integer insurance;

    public Integer getinsurance() {
        return insurance;
    }

    public void setinsurance(Integer insurance) {
        this.insurance = insurance;
    }
    private Long id;
    /**
     * 车辆名
     */
    @TableField("car_name")
    private String carName;
	/**
	 * 车牌号
	 */
	@TableField("car_number")
	private String carNumber;

	public String getCarNumber() {
		return carNumber;
	}

	public void setCarNumber(String carNumber) {
		this.carNumber = carNumber;
	}

    public String getCertificate() {
        return certificate;
    }

    public void setCertificate(String certificate) {
        this.certificate = certificate;
    }

    /**
     * 是否有运营证，1为有，2为没有
     */
    @TableField("certificate")
    private String certificate;

    /**
     * 创建时间
     */
    @TableField(exist = false)
    private Long time;

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    /**
     * 车辆型号
     */
    @TableField("car_type")
    private String carType;
    /**
     * 车辆品牌
     */
    @TableField("car_brand")
    private String carBrand;
    /**
     * 车辆里程 如     10000km   10000
     */
    @TableField("car_km")
    private String carKm;
    /**
     * 车辆容积   如 70立方米   70
     */
    @TableField("car_size")
    private String carSize;
    /**
     * 车辆价格
     */
    @TableField("car_moeny")
    private String carMoeny;
    /**
     * 企业名称
     */
    @TableField("pt_name")
    private String ptName;
    /**
     * 联系人名称
     */
    @TableField("call_name")
    private String callName;
    /**
     * 年检
     */
    @TableField("annual")
    private String annual;
    /**
     * 故障记录
     */
    @TableField("fault")
    private String fault;
    /**
     * 维修记录
     */
    @TableField("service")
    private String service;

    public String getFlagto() {
        return flagto;
    }

    public void setFlagto(String flagto) {
        this.flagto = flagto;
    }

    public String getService() {

        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getFault() {

        return fault;
    }

    public void setFault(String fault) {
        this.fault = fault;
    }

    public String getAnnual() {

        return annual;
    }

    public void setAnnual(String annual) {
        this.annual = annual;
    }

    /**
     * 备注
     */
    @TableField("flagto")
    private String flagto;

    /**
     * 联系人手机号
     */
    @TableField("call_phone")
    private Long callPhone;
    /**
     * 联系人邮箱
     */
    @TableField("call_emal")
    private String callEmal;
    /**
     * 预计取车时间
     */
    @TableField("upcar_time")
    private Long upcarTime;

    public String getBase() {
        return base;
    }

    public void setBase(String base) {
        this.base = base;
    }

    /**
     * 轴距
     */
    @TableField("base")

    private String base;
    /**
     * 轴距
     */
    @TableField("insure")

    private String insure;

    public String getInsure() {
        return insure;
    }

    public void setInsure(String insure) {
        this.insure = insure;
    }

    /**
     * 是否需要配桩
     */
    @TableField("is_charge")
    private String isCharge;
    /**
     * 是否需要发票
     */
    @TableField("is_invoice")
    private String isInvoice;
    /**
     * 是否审核通过  1 通过 2 未通过 只有审核过的 才可以展现在公众号中
     */
    @TableField("is_show")
    private Integer isShow;
    /**
     * pojo映射出的 车辆信息首页概览 图片地址
     */
    @TableField(exist = false)
    private String carImageUrl;
    /**
     * pojo映射出的 车辆类型字典表
     */
    @TableField(exist = false)
    private String dicName;
    /**
     * 	 数量
     */

    private Integer num;

    public Integer getCause() {
        return cause;
    }

    public void setCause(Integer cause) {
        this.cause = cause;
    }

    /**
     * 	 原因

     */

    @TableField("cause")
    private Integer cause;
	/**
	 * 本次采样时间
	 */
	@TableField(exist = false)
	private String samplingTime;
	/**
	 * 累计电费
	 */
	@TableField(exist = false)
	private BigDecimal elecMoeny;
	/**
	 * 累计服务费
	 */
	@TableField(exist = false)
	private BigDecimal serviceMoeny;
	/**
	 * 累计总金额
	 */
	@TableField(exist = false)
	private BigDecimal totalMoeny;

	public String getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}

	/**
	 * 订单号
	 */
	@TableField(exist = false)
	private String orderNum;
    /**
     * 地址
     */
    @TableField(exist = false)
    private String peoepleUrla;

    public String getPeoepleUrlb() {
        return peoepleUrlb;
    }

    public void setPeoepleUrlb(String peoepleUrlb) {
        this.peoepleUrlb = peoepleUrlb;
    }

    public String getPeoepleUrla() {

        return peoepleUrla;
    }

    public void setPeoepleUrla(String peoepleUrla) {
        this.peoepleUrla = peoepleUrla;
    }

    /**
     * 地址
     */

    @TableField(exist = false)
    private String peoepleUrlb;

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public String getUrla() {
        return urla;
    }

    public void setUrla(String urla) {
        this.urla = urla;
    }

    /**
     * 图片首页，已阻车辆
     */
    @TableField(exist = false)
    private String urla;

    /**
     *数量
     */

    @TableField(exist = false)
    private  Long number;


	public String getSamplingTime() {
		return samplingTime;
	}

	public void setSamplingTime(String samplingTime) {
		this.samplingTime = samplingTime;
	}

	public BigDecimal getElecMoeny() {
		return elecMoeny;
	}

	public void setElecMoeny(BigDecimal elecMoeny) {
		this.elecMoeny = elecMoeny;
	}

	public BigDecimal getServiceMoeny() {
		return serviceMoeny;
	}

	public void setServiceMoeny(BigDecimal serviceMoeny) {
		this.serviceMoeny = serviceMoeny;
	}

	public BigDecimal getTotalMoeny() {
		return totalMoeny;
	}

	public void setTotalMoeny(BigDecimal totalMoeny) {
		this.totalMoeny = totalMoeny;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * 充电用户
	 */
	@TableField(exist = false)
	private String phone;
    /**
     * 	 租出状态

     */
    @TableField("sentsuitation")
    private Integer sentsuitation;
    /**
     * 	 '判断个人还是企业，1为企业，2为个人'

     */
    @TableField("flag")
    private Integer flag;

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Integer getFlag() {

        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    /**
     * 	 余额


     */
    @TableField("balance")
        private BigDecimal balance;
    /**
     * 	 用户id


     */
    @TableField("userid")
    private Long userid;
    /**
     * 	 租入状态

     */
    @TableField("getsuitation")
    private Integer getsuitation;

    public Integer getGetsuitation() {
        return getsuitation;
    }

    public void setGetsuitation(Integer getsuitation) {
        this.getsuitation = getsuitation;
    }

    @TableField(exist = false)
    private String url;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @TableField("grounding")
    private Integer grounding;

    public Integer getGrounding() {
        return grounding;
    }

    public void setGrounding(Integer grounding) {
        this.grounding = grounding;
    }

    public Integer getSentsuitation() {
        return sentsuitation;
    }

    public void setSentsuitation(Integer sentsuitation) {
        this.sentsuitation = sentsuitation;
    }

    public String getDicName() {
        return dicName;
    }

    public void setDicName(String dicName) {
        this.dicName = dicName;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getCarImageUrl() {
        return carImageUrl;
    }

    public void setCarImageUrl(String carImageUrl) {
        this.carImageUrl = carImageUrl;
    }

    public String getCarBrand() {
        return carBrand;
    }

    public void setCarBrand(String carBrand) {
        this.carBrand = carBrand;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }

    public String getCarKm() {
        return carKm;
    }

    public void setCarKm(String carKm) {
        this.carKm = carKm;
    }

    public String getCarSize() {
        return carSize;
    }

    public void setCarSize(String carSize) {
        this.carSize = carSize;
    }

    public String getCarMoeny() {
        return carMoeny;
    }

    public void setCarMoeny(String carMoeny) {
        this.carMoeny = carMoeny;
    }

    public String getPtName() {
        return ptName;
    }

    public void setPtName(String ptName) {
        this.ptName = ptName;
    }

    public String getCallName() {
        return callName;
    }

    public void setCallName(String callName) {
        this.callName = callName;
    }

    public Long getCallPhone() {
        return callPhone;
    }

    public void setCallPhone(Long callPhone) {
        this.callPhone = callPhone;
    }

    public String getCallEmal() {
        return callEmal;
    }

    public void setCallEmal(String callEmal) {
        this.callEmal = callEmal;
    }

    public Long getUpcarTime() {
        return upcarTime;
    }

    public void setUpcarTime(Long upcarTime) {
        this.upcarTime = upcarTime;
    }

    public String getIsCharge() {
        return isCharge;
    }

    public void setIsCharge(String isCharge) {
        this.isCharge = isCharge;
    }

    public String getIsInvoice() {
        return isInvoice;
    }

    public void setIsInvoice(String isInvoice) {
        this.isInvoice = isInvoice;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ComCar{" +
                "vehicleName='" + vehicleName + '\'' +
                ", createTime=" + createTime +
                ", endTime=" + endTime +
                ", carId=" + carId +
                ", difference='" + difference + '\'' +
                ", carload=" + carload +
                ", renewal=" + renewal +
                ", wheelbase=" + wheelbase +
                ", insurance=" + insurance +
                ", id=" + id +
                ", carName='" + carName + '\'' +
                ", carNumber='" + carNumber + '\'' +
                ", certificate='" + certificate + '\'' +
                ", time=" + time +
                ", carType='" + carType + '\'' +
                ", carBrand='" + carBrand + '\'' +
                ", carKm='" + carKm + '\'' +
                ", carSize='" + carSize + '\'' +
                ", carMoeny='" + carMoeny + '\'' +
                ", ptName='" + ptName + '\'' +
                ", callName='" + callName + '\'' +
                ", annual='" + annual + '\'' +
                ", fault='" + fault + '\'' +
                ", service='" + service + '\'' +
                ", flagto='" + flagto + '\'' +
                ", callPhone=" + callPhone +
                ", callEmal='" + callEmal + '\'' +
                ", upcarTime=" + upcarTime +
                ", base='" + base + '\'' +
                ", insure='" + insure + '\'' +
                ", isCharge='" + isCharge + '\'' +
                ", isInvoice='" + isInvoice + '\'' +
                ", isShow=" + isShow +
                ", carImageUrl='" + carImageUrl + '\'' +
                ", dicName='" + dicName + '\'' +
                ", num=" + num +
                ", cause=" + cause +
                ", samplingTime='" + samplingTime + '\'' +
                ", elecMoeny=" + elecMoeny +
                ", serviceMoeny=" + serviceMoeny +
                ", totalMoeny=" + totalMoeny +
                ", orderNum='" + orderNum + '\'' +
                ", peoepleUrla='" + peoepleUrla + '\'' +
                ", peoepleUrlb='" + peoepleUrlb + '\'' +
                ", urla='" + urla + '\'' +
                ", number=" + number +
                ", phone='" + phone + '\'' +
                ", sentsuitation=" + sentsuitation +
                ", flag=" + flag +
                ", balance=" + balance +
                ", userid=" + userid +
                ", getsuitation=" + getsuitation +
                ", url='" + url + '\'' +
                ", grounding=" + grounding +
                '}';
    }
}
